package com.nine.pattern.adapter.object_adapter;

/**
 * @author nine
 * @version 1.0
 * @description TODO
 * @date 2024-07-08 21:59
 */
public class TestClient {
	public static void main(String[] args) {
		Computer computer = new Computer();
		String msg = computer.readSD(new SDCardImpl());
		System.out.println(msg);

		System.out.println("========================");

		// 使用电脑读取 TF 卡数据
		String msg2 = computer.readSD(new SDAdapterTF(new TFCardImpl()));
		System.out.println(msg2);

	}
}
